#ifndef BULLET_H
#define BULLET_H

#include <QWidget>
#include <QPixmap>
#include "config.h"

class Bullet
{
public:
    QPixmap bullet;
    int x;
    int y;
    bool isFree;
    int speed;
    bool isHero;

    Bullet(bool hero = true);
    void updatePosition();
    void SetPlayerBullet(bool isPlayer);
    int width;
    int height;
    void setPosition(int x, int y);
};

#endif // BULLET_H
